import request from '../../utils/request';
//查询项目列表
export const projectlist = query => {
    return request({
        url: '/api/version/project/doMain',
        method: 'post',
        // url:'./json/projectlist.json',
        // method: 'get',
        params: query
    });
};
//添加
export const doAdd = query => {
    return request({
        url: '/api/version/project/doAdd',
        method:'post',
        // url:'./json/addORupdatepatient.json',
        // method: 'get',
        params: query
    });
};
//修改编辑
export const doUpdate = query => {
    return request({
        url: '/api/version/project/doUpdate',
        method:'post',
        // url:'./json/addORupdatepatient.json',
        // method: 'get',
        params: query
    });
};
//删除
export const doDelete = query => {
    return request({
        url: '/api/version/project/doDelete',
        method:'delete',
        // url:'./json/addORupdatepatient.json',
        // method: 'get',
        params: query
    });
};
//上传版本
export const addVersion = query => {
    return request({
        url: '/api/version/server/doAdd',
        // url:'./json/doctor.json',
        method: 'post',
        data: query,
        timeout: null
    });
};

//根据项目ID查询
export const selectProById = query => {
    return request({
        url: '/api/version/project/doView',
        method:'post',
        // url:'./json/projectone.json',
        // method: 'get',
        params: query
    });
};
